package com.yitong.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class HelloContorller {
    @GetMapping("")
    public String hello(){
        return "hello,这是第一个springboot";
    }
    @GetMapping("hello")
    public Hello hello1(){
        Hello helloe = Hello.builder().age(18)
                .name("helloe").build();
        log.info("hello日志记录");
        return helloe;
    }
}
